package cn.monkey.transport.netty.server.codec.protocol.tcp.mqtt;

import io.netty.handler.ssl.SslContext;

public class MqttServerProtocolConfig {
    private int maxBytesInMessage = 8092;
    private int maxClientIdLength = 23;
    private SslContext sslContext;

    public static MqttServerProtocolConfig defaultConfig() {
        return new MqttServerProtocolConfig();
    }

    public int getMaxBytesInMessage() {
        return maxBytesInMessage;
    }

    public void setMaxBytesInMessage(int maxBytesInMessage) {
        this.maxBytesInMessage = maxBytesInMessage;
    }

    public int getMaxClientIdLength() {
        return maxClientIdLength;
    }

    public void setMaxClientIdLength(int maxClientIdLength) {
        this.maxClientIdLength = maxClientIdLength;
    }

    public SslContext getSslContext() {
        return sslContext;
    }

    public void setSslContext(SslContext sslContext) {
        this.sslContext = sslContext;
    }
}
